<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../../base.jsp"%>
<%@ include file="../../baselist.jsp"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <!-- 设置outcome连线出口 -->
    <script type="text/javascript">
    	function setOutcome(val){
    		document.getElementById("outcome").value = val;
    	}
    </script>
</head>
<body>
<form method="post">
	<input type="hidden" id="outcome" name="outcome" value=""/>
	<input type="hidden" name="taskId" value="${taskId}"/>

<div id="menubar">
<div id="middleMenubar">
<div id="innerMenubar">
    <div id="navMenubar">
<ul>
<li id="save"><a href="#" onclick="setOutcome('审批');formSubmit('doTask.action','_self');">审批</a></li>
<li id="save"><a href="#" onclick="setOutcome('驳回');formSubmit('doTask.action','_self');">驳回</a></li>
<li id="back"><a href="#" onclick="history.go(-1);">返回</a></li>
</ul>
    </div>
</div>
</div>
</div>
     
<div class="textbox" id="centerTextbox">
    
    <div class="textbox-header">
    <div class="textbox-inner-header">
    <div class="textbox-title">
		审核管理&nbsp;&nbsp;
		<a href="viewCurImage.action?taskId=${taskId}" target="_blank"><font color="orange">[跟踪流程图]</font></a>
    </div> 
    </div>
    </div>
<div>
    <table class="commonTable" cellspacing="1">
	        <tr>
	            <td class="columnTitle_mustbe">请假内容：</td>
	            <td class="tableContent">
	            	<textarea name="content" rows="2" style="height:50px;" readonly="readonly">${obj.content }</textarea>
	            </td>
	            <td class="columnTitle_mustbe">开始时间：</td>
	            <td class="tableContent">
	            	<input type="text" style="width:120px;" name="startDate"
	             		value="<fmt:formatDate value='${obj.startDate}' pattern='yyyy-MM-dd'/>" readonly="readonly"
	             		/>
	            </td>
	        </tr>
	        <tr>
	            <td class="columnTitle_mustbe">天数：</td>
	            <td class="tableContent"><input type="text" name="days" value="${obj.days }" readonly="readonly"/></td>
	            <td class="columnTitle_mustbe">备注：</td>
	            <td class="tableContent">
	            	<textarea name="remark" rows="2" style="height:50px;" readonly="readonly">${obj.remark }</textarea>
	            </td>
	        </tr>
	         <tr>
	            <td class="columnTitle_mustbe">审批意见：</td>
	            <td class="tableContent">
	            	<textarea name="comment" rows="2" style="height:50px;" ></textarea>
	            </td>
	            <td class="columnTitle_mustbe"></td>
	            <td class="tableContent">
	            </td>
	        </tr>
		</table>
</div>

<div class="eXtremeTable" >
<table id="ec_table" class="tableRegion" width="98%" >
	<thead>
	<tr>
		<td class="tableHeader">序号</td>
		<td class="tableHeader">办理人</td>
		<td class="tableHeader">办理时间</td>
		<td class="tableHeader">审批意见</td>
	</tr>
	</thead>
	<tbody class="tableBody" >
	
	<c:forEach items="${hisComments}" var="o" varStatus="status">
	<tr class="odd" onmouseover="this.className='highlight'" onmouseout="this.className='odd'" >
		<td>${status.index+1}</td>
		<td>${o.userId}</td>
		<td><fmt:formatDate value="${o.time}" pattern="yyyy-MM-dd hh:mm:ss"/></td>
		<td>${o.fullMessage}</td>
	</tr>
	</c:forEach>
	
	</tbody>
</table>
</div>
 
</div>
</form>
</body>
</html>

